package com.xian.branch;

import java.util.Scanner;

public class IfDemo1 {
    public static void main(String[] args) {
        int heartBeat = 790;
        if(heartBeat < 60 || heartBeat > 100){
            System.out.println("心跳:" + heartBeat + "需要治疗！！！");
        }
        System.out.println("11111111");


        System.out.println("----------------------------------------");
        double money = 9999;
        if(money >= 1314){
            System.out.println("有钱");
        }else {
            System.out.println("没钱啦！！！");
        }

        System.out.println("----------------------------------------");

        System.out.println("请输入成绩:");

        Scanner sc = new Scanner(System.in);
        int score = sc.nextInt();

        if(score >= 0 && score < 60){
            System.out.println("C");
        }else if(score >= 60 && score < 80){
            System.out.println("B");
        }else if(score >= 80 && score <=100){
            System.out.println("A");
        }else {
            System.out.println("错误");
        }

    }
}
